package com.tool.payment.service;

import com.tool.payment.model.PayOrder;

public interface PayOrderService {

	/**
	 * 保存
	 * @param payOrder
	 */
	void savePayOrder(PayOrder payOrder);
	/**
	 * 根据id获得支付订单
	 * @param id
	 * @return
	 */
	PayOrder getPayOrderById(Object id);
	/**
	 * 更新
	 * @param payOrder
	 */
	void updatePayOrder(PayOrder payOrder);
	/**
	 * 根据workid获得成功的支付订单
	 * @param workid
	 * @return
	 */
	PayOrder getSuccessPayOrderByWorkid(long workid,Integer payproduct,Integer type);
}
